<template>
  <div id="centerDiv" class="mapcontainer">
    <header id="header">
      <h3 class="header-title">哈尔滨流域水环境分析系统</h3>
    </header>
    <!-- cesiumr容器 -->
    <Map :url="configUrl" :widgetUrl="widgetUrl" @onload="onMapload" />
  </div>
</template>

<script>
import Map from "@/components/LArk-map/Main.vue";
export default {
  name: "map3D",
  data() {
    return {
      configUrl: "config/config.json",
      widgetUrl: "config/widget.json"
    };
  },
  components: {
    Map
  },
  computed: {},
  methods: {
    onMapload(viewer) {}
  },
  mounted() {
    var that = this;
    this.$nextTick(() => {});
  },
  destroyed() {
    LArk.widget.disable("widgets/manageLayers/widget.js");
  }
};
</script>

<style lang="scss">
#header {
  position: fixed;
  left: 0;
  top: 0;
  height: 72px;
  width: 100%;
  z-index: 1;
  background-color: #000;
  opacity: 0.6;
  background-size: 100% 100%;
  background-image: url("../../assets/images/header.png");
}
.header-title {
  text-align: center;
  font-size: 34px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  padding: 0;
}
#centerDiv {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  background: transparent;
}
.cesium-viewer-toolbar {
  top: auto;
  left: auto;
  right: 8px;
  bottom: 35px;
  span.cesium-sceneModePicker-wrapper {
    margin: 0;
  }
  .cesium-sceneModePicker-wrapper {
    width: auto;
  }
  .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon {
    float: left;
    margin: 0 3px;
  }
}
</style>
